/*
 * DeleteSelectedElementMouseListener.hpp
 *
 *  Created on: 15-01-2011
 *      Author: Przemek
 */

#pragma once

#include "gui/MouseListener.hpp"
#include "listener/SelectElementMouseListener.hpp"

/*
 * Deletes selected element (stored in selectElementMouseListener) when one is selected on
 * mouse being released.
 */
class DeleteSelectedElementMouseListener: public MouseListener
{
	private:
		SelectElementMouseListener* selectElementMouseListener;

	public:
		DeleteSelectedElementMouseListener(SelectElementMouseListener* selectElementMouseListener);
		void mouseReleased(const MouseListener::EventArguments& arguments);
};

